import { createRouter, createWebHistory } from 'vue-router';
import EditorPlatform from '../platform/view/EditorPlatform.vue';

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/editor',
      name: 'editor',
      component: EditorPlatform,
      children: [
        // 面板动态视图占位符
        {
          path: ':mainPath/panel/:panelType',
          name: 'PanelView',
          meta: { 
            isPanelView: true,
            hideMenu: true 
          }
        }
      ]
    }
  ]
});

export default router;